<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="rapid" uri="http://www.rapid-framework.org.cn/rapid"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="cache-control" content="no-cache">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="applicable-device" content="pc,mobile">
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />
<link rel="shortcut icon" href="img/logo.png">

<meta name="description" content="${options.optionMetaDescrption }" />
<meta name="keywords" content="${options.optionMetaKeyword }" />
<title>${options.optionSiteTitle }-${options.optionSiteDescrption }</title>
<link rel="stylesheet" href="/resources/css/style.css">
<link rel="stylesheet"
	href="/resources/plugin/font-awesome/css/font-awesome.min.css">
</head>
<body>
	<div id="page" class="site" style="transform: none;">
		<header id="masthead" class="site-header">
			<nav id="top-header">
				<div class="top-nav">
					<div class="user-login">
						<a href="/ssm-blogs-yqb/user/login">进入后台</a> <a
							href="https://www.com/bulletin/my-service" target="_blank"
							style="color: red;">讨论技术/公共论坛</a>
					</div>
					<div class="menu-topmenu-container">
						<ul id="menu-topmenu" class="top-menu">
							<%--显示的是顶部菜单 (MenuLevel=1的)  申请友链  文章归档   关于本站 --%>
							<c:forEach items="${menuList}" var="m">
								<li class="menu-item"><c:if test="${m.menuLevel==1}">
										<a href="${m.menuUrl}"> <i class="${m.menuIcon}"></i> <span
											class="font-text">${m.menuName}&nbsp;</span>&nbsp;
										</a>
									</c:if></li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</nav>
			<!-- #top-header -->
			<div id="menu-box">

				<div id="top-menu">
					<span class="nav-search"> <i class="fa fa-search"></i>
					</span>
					<div class="logo-site">
						<h1 class="site-title">
							<a href="/" title="${options.optionSiteTitle }">${options.optionSiteTitle }</a>
						</h1>
						<p class="site-description">${options.optionSiteDescrption }</p>
					</div>
					<!-- .logo-site -->
					<div id="site-nav-wrap">
						<div id="sidr-close">
							<a href="#sidr-close" class="toggle-sidr-close">×</a>
						</div>
						<nav id="site-nav" class="main-nav">
							<a href="#sidr-main" id="navigation-toggle" class="bars"> <i
								class="fa fa-bars"></i>
							</a>
							<div class="menu-pcmenu-container">
								<ul id="menu-pcmenu"
									class="down-menu nav-menu sf-js-enabled sf-arrows">
									<li><a href="/"> <i class="fa-home fa"></i> <span
											class="font-text">首页</span>
									</a></li>

									<%--所有的分类,构成二级导航条 --%>
									<c:forEach var="c" items="${cateList}">
										<c:if test="${c.categoryPid==0}">
											<li><a href="/category/${c.categoryId}"> <i
													class="${c.categoryIcon}"></i> <span class="font-text">${c.categoryName}&nbsp;</span>
											</a>
												<ul class="sub-menu">
													<c:forEach items="${cateList}" var="c_sub">
														<c:if test="${c_sub.categoryPid==c.categoryId}">
															<li><a href="/category/${c_sub.categoryId}"
																target="_blank">${c_sub.categoryName}</a></li>
														</c:if>
													</c:forEach>
												</ul></li>
										</c:if>
									</c:forEach>

									<%--二级导航条右侧,其实是几个顶部菜单 (MenuLevel=2的,叫主体菜单) --%>
									<c:forEach var="m" items="${menuList}">
										<c:if test="${m.menuLevel == 2}">
											<li><a href="${m.menuUrl}"> <i class="${m.menuIcon}"></i>
													<span class="font-text">${m.menuName}&nbsp;</span>
											</a></li>
										</c:if>
									</c:forEach>
								</ul>
							</div>
						</nav>
					</div>
					<div class="clear"></div>
				</div>
				<!-- #top-menu -->
			</div>
			<!-- #menu-box -->
		</header>
		<!-- #masthead -->
		<div id="search-main">
			<div class="searchbar">
				<form method="get" id="searchform" action="/search"
					accept-charset="UTF-8">
					<span> <input type="text" value="" name="keywords" id="s"
						placeholder="输入搜索内容" required="">
						<button type="submit" id="searchsubmit">搜索</button>
					</span>
				</form>
			</div>
			<div class="clear"></div>
		</div>
		 <rapid:block name="breadcrumb">
				
		<!-- 不面的页面,将来要重写这里的内容 -->
		 <%--index.jsp是这样重写的: 
		    <nav class="breadcrumb">
		      
				<div class="bull">
					<i class="fa fa-volume-up"></i>
				</div>
				<div id="scrolldiv">
					<div class="scrolltext">
						<ul style="margin-top: 0px;">
							<li class="scrolltext-title"><a href="/notice/3"
								rel="bookmark">终于开始更新了</a></li>
							<li class="scrolltext-title"><a href="/notice/1"
								rel="bookmark">本站下载地址</a></li>
							<li class="scrolltext-title"><a href="/notice/4"
								rel="bookmark">公告信息发布</a></li>
						</ul>
					</div>
				</div>
			</nav>
		--%>
		</rapid:block>

		<div id="content" class="site-content" style="transform: none;">
			<rapid:block name="left">
				 	 左边要重写
				 </rapid:block>
			<rapid:block name="right">
		         	  右边要重写
		        </rapid:block>
		</div>

		<div class="clear"></div>
		<!-- 友情链接 -->
		<div class="links-box">
			<div id="links">
				<c:forEach items="${linkList}" var="l">
					<ul class="lx7">
						<li class="link-f link-name"><a href="${l.linkUrl}"
							target="_blank"> ${l.linkName}-- </a></li>
					</ul>
				</c:forEach>
				<div class="clear"></div>
			</div>
		</div>
		<footer id="colophon" class="site-footer" role="contentinfo">
			<div class="site-info">
				<p style="text-align: center;">
					Copyright © 2017 <a href="/" target="_blank"
						rel="noopener noreferrer">风吟博客</a> All rights reserved. <a
						target="_blank" href="/map"> <span class="font-text">站点地图</span>
					</a>
				</p>
			</div>
			<!-- .site-info -->
		</footer>
		<!-- .site-footer -->
	</div>

	<script src="/resources/js/jquery.min.js"></script>
	<script src="/resources/js/superfish.js"></script>
	<script src='/resources/js/sticky.js'></script>
	<script src="/resources/js/script.js"></script>
	<script src="/resources/plugin/layui/layui.all.js"></script>
		<rapid:block name="frame-footer-script">
		        
    </rapid:block>

</body>
</html>